﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkManapro.BusinessModel;

namespace GMAC.ReportingSystem.Business.Entities
{
    [DbProcedures(Insert = "", Update = "procAgentsUpdate", Delete = "")]
    public class Agent: BusinessEntity
    {
         /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        [EntityPrimaryKey]
        [DbParameter(0, 1, 0)]
        public int ID { get; set; }

        /// <summary>
        /// Gets or sets the UserName.
        /// </summary>
        /// <value>The UserName.</value>
        [DbParameter(0, 0, 0)]
        public string UserName { get; set; }

	    /// <summary>
        /// Gets or sets the FirstName.
        /// </summary>
        /// <value>The FirstName.</value>
        [DbParameter(0, 0, 0)]
        public string FirstName { get; set; }

        /// <summary>
        /// Gets or sets the LastName.
        /// </summary>
        /// <value>The LastName.</value>
        [DbParameter(0, 0, 0)]
        public string LastName { get; set; }

	    /// <summary>
        /// Gets or sets the ManagementGroup.
        /// </summary>
        /// <value>The ManagementGroup.</value>
        [DbParameter(0, 2, 0)]
        public int? ManagementGroup { get; set; }

	    /// <summary>
        /// Gets or sets the Turn.
        /// </summary>
        /// <value>The Turn.</value>
        [DbParameter(0, 0, 0)]
        public GeneralEnumTypes.Turn Turn { get; set; }

	    /// <summary>
        /// Gets or sets the TypeAgent.
        /// </summary>
        /// <value>The TypeAgent.</value>
        [DbParameter(0, 0, 0)]
        public GeneralEnumTypes.TypeAgent TypeAgent { get; set; }

        /// <summary>
        /// Gets or sets the TypeAgent.
        /// </summary>
        /// <value>The TypeAgent.</value>
        [DbParameter(0, 3, 0)]
        public bool Status { get; set; }
    }
    public class AgentCollection : List<Agent>
    {
        public int TotalResults { get; set; }
    }
}
